package com.weseal.form;

import com.weseal.domain.RoleInfo;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * @author weseal
 * @title
 * @description
 * @usage
 * @copyright Copyright 2014  rrmj Corporation. All rights reserved.
 * @company 上海众多美网络科技有限公司
 * @create 2017/9/10
 */
public class RoleInfoForm {

	private Long id;

	private String roleName;

	private Boolean lock;

	private List<Integer> functionIds;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public RoleInfo convert2Domain() {
		RoleInfo roleInfo = new RoleInfo();
		BeanUtils.copyProperties(this, roleInfo);
		return roleInfo;
	}

	public List<Integer> getFunctionIds() {
		return functionIds;
	}

	public void setFunctionIds(List<Integer> functionIds) {
		this.functionIds = functionIds;
	}


	public Boolean getLock() {
		return lock;
	}

	public void setLock(Boolean lock) {
		this.lock = lock;
	}
}
